此软件官网涵盖了从基本的2D图表到复杂的3D图形、统计图表、颜色和样式选项等多种类型。每个示例都配有相应的图像,展示了Gnuplot在不同绘图需求下的表现。这些示例对于了解Gnuplot的强大功能和灵活性非常有帮助。Gnuplot官方演示页面(https://gnuplot.sourceforge.net/demo/)。下面是简单图表及绘制脚本。# Requires data files "[123].dat" from this directory, # so change current working directory to this directory before running. # gnuplot> set term <term-type> # gnuplot> load 'simple.dem' # set title "Simple Plots" font ",20" set key left box set samples 50 set style data points
plot [-10:10] sin(x),atan(x),cos(atan(x))
Click here for minimal script to generate this plot